﻿@model List<TV4Home.Server.TVEInteractionLibrary.Interfaces.WebProgramDetailed>
@{
    
    if (Model == null || Model.Count == 0)
    {
    <div id="programsPanel" class="TVGuideProgramsPanel">
        <div class="TVGuideCellProgramNoEPG" style="width: 99%;">
            <span class="TVGuideCellProgramTextNoEPG">Kein EPG verfügbar</span>
        </div>
    </div>
    }
    else
    {
        foreach (TV4Home.Server.TVEInteractionLibrary.Interfaces.WebProgramDetailed program in Model)
        {
            //int timeInPercent = (4 * 60 * program.EndTime.Subtract(program.StartTime).Minutes) / 100;

            if (program.StartTime < DateTime.Now)
            {  
    <div class="TVGuideCellProgramOnAir">
        <div class="TVGuideCellProgramLeftSeperator">
        </div>
        <div class="TVGuideCellProgramRightSeperator">
        </div>
        <a class="TVGuideCellProgramText" href="">@program.Title</a>
    </div>
            }
            else
            {    <div class="TVGuideCellProgram">
                <div class="TVGuideCellProgramLeftSeperator">
                </div>
                <div class="TVGuideCellProgramRightSeperator">
                </div>
                <a class="TVGuideCellProgramText" href="">@program.Title</a>
            </div>
            }

        }

    }
           
           
}
